﻿using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace WeiboPlus.Models
{
    [Table(Name = "sns_image")]
    public class SNSImage : NotificationObject
    {
        string _url;
        [Column(Name = "url", IsPrimaryKey = true)]
        public string Url
        {
            get
            {
                return _url;
            }
            set
            {
                RaisePropertyChanging("Url");
                _url = value;
                RaisePropertyChanged("Url");
            }
        }

        Binary _data;
        [Column(Name = "data", DbType = "image ")]
        public Binary Data
        {
            get
            {
                return _data;
            }
            set
            {
                RaisePropertyChanging("Data");
                _data = value;
                RaisePropertyChanged("Data");
            }
        }

        [Column(IsVersion = true)]
#pragma warning disable 0168, 0169
        private Binary _version;
#pragma warning restore 0168, 0169
    }
}
